package com.lixl.dubbo.controller;

import com.lixl.dubbo.api.IDataService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Reference
    IDataService dataService;

    @GetMapping("/hello")
    public String hello(){

        return dataService.echo("dubbo");
    }

}
